﻿using System;
using System.Collections.Generic;
using System.Text;
using Castle.ActiveRecord;
using Atendex.Dominio;
using Atendex.Dominio.Interfaces;
namespace Atendex.Dominio.ActiveRecord
{
    [ActiveRecord("area", DiscriminatorColumn="type", DiscriminatorType="String", DiscriminatorValue="area")]
    [Serializable]
    public abstract class AreaAR : ActiveRecordBase<AreaAR>, IArea
    {
        
        [PrimaryKey]
        public int Id { get; set; }

        [Property]
        public string Nome { get; set; }

        [Property]
        public string Descricao { get; set; }
       
        [Property]
        public bool Ativa { get; set; }
        public override string ToString()        {
            return Nome;
        }
    }
}
